//
//  SLTimerViewModel.m
//  Objective-C
//
//  Created by S_Line on 2018/9/6.
//  Copyright © 2018年 S_Line. All rights reserved.
//

#import "SLTimerViewModel.h"

@implementation SLTimerViewModel

- (void)initData {
    self.sections = [NSMutableArray new];
    self.dataDict = [NSMutableDictionary new];
    NSMutableArray *dataArray = [NSMutableArray new];
    
    NSString *firstSection = @"Timer";
    [self.sections addObject:firstSection];
    SLTimerModel *firstModel = [[SLTimerModel alloc] initWithTimerType:SLTimerTypeTimer];
    SLTimerModel *secondModel = [[SLTimerModel alloc] initWithTimerType:SLTimerTypeDisplayLink];
    SLTimerModel *thirdModel = [[SLTimerModel alloc] initWithTimerType:SLTimerTypeGCD];
    [dataArray addObjectsFromArray:@[firstModel, secondModel, thirdModel]];
    [self.dataDict setObject:dataArray forKey:firstSection];
}

@end
